package com.chinasofti.project.web.form;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.chinasofti.project.common.web.BaseForm;

public class PersonalDataForm extends BaseForm{

	@NotBlank(message = "用户昵称不能为空")
	@Length(min = 1, max = 16, message = "昵称的长度应该在{min}与{max}之间")
    private String userNickname;//用户昵称

	@NotBlank(message = "用户手机不能为空")
	@Pattern(regexp = "^\\d{11}$", message = "手机格式不是11位")
	private String userPhone;// 用户手机号

    private String userSex;//用户性别

	private Date userBirthday;// 用户生日
    
	@NotBlank(message = "用户姓名不能为空")
	@Length(min = 1, max = 20, message = "姓名的长度应该在{min}与{max}之间")
    private String userTrueName;//用户姓名

	public String getUserNickname() {
		return userNickname;
	}

	public void setUserNickname(String userNickname) {
		this.userNickname = userNickname;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserSex() {
		return userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public Date getUserBirthday() {
		return userBirthday;
	}

	public void setUserBirthday(Date userBirthday) {
		this.userBirthday = userBirthday;
	}

	public String getUserTrueName() {
		return userTrueName;
	}

	public void setUserTrueName(String userTrueName) {
		this.userTrueName = userTrueName;
	}
    
}